﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentBranchesConfig
{
    /// <summary>
    /// 代理商网点配置添加信息模型
    /// </summary>
    public class AgentBranchesConfigRequestDto
    {
        /// <summary>
        /// 代理商网点名称
        /// </summary>
        [Display(Name = "代理商网点名称")]
        [MaxLength(length: 100)]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string AgentBranchesName { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>
        [Display(Name = "联系人电话")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 区县编码
        /// </summary>
        [Display(Name = "区县编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [Display(Name = "经度")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public double Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [Display(Name = "纬度")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public double Latitude { get; set; }

        /// <summary>
        /// 地址信息
        /// </summary>
        [Display(Name = "地址信息")]
        [MaxLength(length: 100)]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string Address { get; set; }

        /// <summary>
        /// 是否寄送
        /// </summary>
        [Display(Name = "是否寄送")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public bool IsSend { get; set; }

        /// <summary>
        /// 是否收件
        /// </summary>
        [Display(Name = "是否收件")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public bool IsReceive { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string Remark { get; set; }
    }
}
